﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Less2DB.SQLBuilder
{
    class BuilderBase
    {
        private string _tableName;

        /// <summary>
        /// 获取或设置当前查询的表名。
        /// </summary>
        public string TableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }

        /// <summary>
        /// 构造当前查询的字段列表。
        /// </summary>
        public string[] Fields;

        /// <summary>
        /// 获取或设置 SQL SELECT 的查询条件。
        /// </summary>
        public string Where;

        private Less2DB.Interfaces.ISQLBuilder _diffImplementation;

        /// <summary>
        /// 获取或设置 SQL SELECT 查询的差异标准实现类。
        /// </summary>
        public Less2DB.Interfaces.ISQLBuilder DiffImplementation
        {
            get { return _diffImplementation; }
            set { _diffImplementation = value; }
        }
    }
}
